package terminal.utility;

import terminal.ui.Item;

public class Symbol {

    private String symbol;
    private Item item;
    private boolean isValid;

    public Symbol(String symbol) {
        this.symbol = symbol;
        isValid = false;
        item = null;
    }

    public String getSymText() {
        return symbol;
    }

    public void setValid() {
        isValid = true;
    }

    public boolean isValid() {
        return isValid;
    }

    public Item getItem() {
        return item;
    }

    public void constructItem(String title, String data) {
        item = new Item(title, data);
    }
}
